#include<stdio.h>

void D_to_B(int num)
{
   int a[100];
   int i=0;
   while(num)
   {
      a[i++]=num%2;
      num/=2;
   }
   while(i)
   {
    printf("%d",a[--i]);
   }
   return ;
}
int main(int argc, char const *argv[])
{
    int num;
    scanf("%d",&num);
    D_to_B(num);    
    return 0;
}
